home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / goodies / qtaddeffectseg.win / addeffectsegment.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.6 KB  |  66 lines

  1. //////////
  2. //
  3. //    File:        AddEffectSegment.h
  4. //
  5. //    Contains:    Sample code for adding a visual effect to a segment of a movie.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         05/05/94    rtm        first file; ole!
  14. //       
  15. //////////
  16.  
  17.  
  18. //////////
  19. //
  20. // header files
  21. //
  22. //////////
  23.  
  24. #include <Movies.h>
  25. #include <Sound.h>
  26. #include <Endian.h>
  27. #include <ImageCodec.h>
  28. #include <MediaHandlers.h>
  29.  
  30.  
  31. //////////
  32. //
  33. // compiler flags
  34. //
  35. //////////
  36.  
  37. #define USES_MAKE_IMAGE_DESC_FOR_EFFECT    0        // use MakeImageDescriptionForEffect (QT 4.0 and later)
  38.  
  39.  
  40. //////////
  41. //
  42. // constants
  43. //
  44. //////////
  45.  
  46. // effects sources names
  47. #define kSourceOneName                    FOUR_CHAR_CODE('srcA')
  48. #define kSourceTwoName                    FOUR_CHAR_CODE('srcB')
  49. #define kSourceThreeName                FOUR_CHAR_CODE('srcC')
  50. #define kSourceNoneName                    FOUR_CHAR_CODE('srcZ')
  51.  
  52.  
  53. //////////
  54. //
  55. // function prototypes
  56. //
  57. //////////
  58.  
  59.  
  60. OSErr                        QTEffSeg_AddEffectToMovieSegment (Movie theMovie, OSType theEffectType, long theNumSources, TimeValue theStartTime, TimeValue theDuration);
  61. QTAtomContainer                QTEffSeg_CreateEffectDescription (OSType theEffectName, OSType theSourceName1, OSType theSourceName2);
  62. OSErr                        QTEffSeg_AddTrackReferenceToInputMap (QTAtomContainer theInputMap, Track theTrack, Track theSrcTrack, OSType theSrcName);
  63. ImageDescriptionHandle        QTEffSeg_MakeSampleDescription (OSType theEffectType, short theWidth, short theHeight);
  64. short                        QTEffSeg_GetFrontmostTrackLayer (Movie theMovie, OSType theTrackType);
  65.  
  66.